from django.contrib import admin
from models import *

admin.site.register(User)
admin.site.register(Event)
admin.site.register(Attending)
admin.site.register(MaybeAttending)
admin.site.register(NotAttending)
admin.site.register(Visitor)
admin.site.register(Invited)
admin.site.register(Category)
admin.site.register(Page)
admin.site.register(Menu)
admin.site.register(Link)
admin.site.register(TermsAndCondition)
admin.site.register(Faq)
admin.site.register(NewsAndUpdate)
admin.site.register(LiveStream)
admin.site.register(PayedAttendees)
admin.site.register(Contact)
admin.site.register(EventModerator)
admin.site.register(Photo)
admin.site.register(Video)
admin.site.register(Bookmark)



admin.site.register(KnowledgeStore)
class ComponentsAdmin(admin.ModelAdmin):
    """ 
    Author: 
	   Heba El Mohandes and Pauline George
	Story:  
	  C1-10
      list_display is needed to display what I need to be viewed by the admin and exclude to prevent the admin from editing the title and the description just to approve or reject and view
    Args:
        admin.ModelAdmin
    Returns:
        By pressing certain component Title, description, approved, rejected and view of this component appears in the admin.
    """
    list_display=('title','description','approved', 'rejected','viewComp')
    exclude = ('title','description','rejected')


    
admin.site.register(Component,ComponentsAdmin)
admin.site.register(EventTemplate)